MusicPlayer Class Reference

#include <classes.h>

List of all members.

Public Member Functions

void loop ()
void play (int mode)
int getMode ()
void changeMusic (int music)


Detailed Description

Music Player- plays all music properly without anyone overlapping.

Member Function Documentation

void MusicPlayer::changeMusic ( int  music  )  [inline]

stops the current music, and then plays the new music of the mode changed.

int MusicPlayer::getMode (  )  [inline]

Returns the current music mode.

void MusicPlayer::loop (  )  [inline]

Main calls this loop, so that GDK can play the music. It checks the musicMode and makes it play the right music according to the appropiate action of the game.

void MusicPlayer::play ( int  mode  )  [inline]

play- changes the music mode of the music object, so that it will loop a different music.


The documentation for this class was generated from the following file:

Generated on Thu Apr 30 10:32:57 2009 for Metal vs Magic by  doxygen 1.5.8